<script type="text/javascript">
$(function () {
	var url = '${contextPath}script/oa/stock.js';
	$.ajax({url:url, dataType:'script', cache:true,
		success: function(){
			var page = sys_fill_parm('queryStockForm');
			query_stock(page);
		}
	});
	
});
</script>

<#import "/freemarker/modeltype.ftl" as mt>
<#import "/freemarker/modeltype_entity.ftl" as mte>

<form id="queryStockForm">
	<table class="search_term_table">
		<tr>
			<th style="width: 80px;">商品名称</th>
			<td><input type="text" name="name" class="form-control" style="width:100px;"/></td>
			<th style="width: 80px;">所属类别</th>
			<td>
				<select name="sort" id="sort">
					<option value="">所有</option>
					<option value="1">消耗品</option>
					<option value="2">固定资产</option>
				</select>
			</td>
			<td style="text-align:right;">
				<button class="btn btn-info" onclick="javascript: query_stock(); return false;"><i class="icon-search"></i> 查 询 </button>
				<button class="btn btn-success" onclick="javascript: sys_load_handle('stock-in'); return false;"><i class="icon-file"></i>新增入库 </button>
			</td>
		</tr>
	</table>
</form>
<div id="stockResultList"></div>
